/*
 * @Author: mhb
 * @Date: 2021-11-23 11:08:06
 * @LastEditTime: 2023-04-19 11:14:32
 * @LastEditors: Please set LastEditors
 * @Description: 第三方模块路由
 * @FilePath: \cscec-pms-admin\src\config\routers\others.js
 */
import { RouteView } from '@/layouts'

export default [
  // 看板
  {
    path: '/bi',
    component: RouteView,
    redirect: '/bi/boardIn',
    name: 'board',
    meta: {
      title: '看板',
      icon: 'user',
      hideHeader: true,
      permission: ['user']
    },
    children: [
      {
        path: 'bi',
        component: RouteView,
        redirect: '/bi/boardIn',
        name: 'boardIn',
        meta: {
          title: 'bi决策'
        },
        children: [
          {
            path: '/bi/boardIn',
            component: () => import('@/views/bi/boardIn'),
            name: '/bi/boardIn',
            meta: {
              title: '对内看板'
            }
          },
          {
            path: '/bi/business',
            component: () => import('@/views/bi/business'),
            name: '/bi/business',
            meta: {
              title: '商务'
            }
          },
          {
            path: '/bi/design',
            component: () => import('@/views/bi/design'),
            name: '/bi/design',
            meta: {
              title: '设计'
            }
          },
          {
            path: '/bi/informationCenter',
            component: () => import('@/views/bi/informationCenter'),
            name: '/bi/informationCenter',
            meta: {
              title: '信息技术中心'
            }
          },
          {
            path: '/bi/legal',
            component: () => import('@/views/bi/legal'),
            name: '/bi/legal',
            meta: {
              title: '法务'
            }
          },
          {
            path: '/bi/materials',
            component: () => import('@/views/bi/materials'),
            name: '/bi/materials',
            meta: {
              title: '物资'
            }
          },
          {
            path: '/bi/procurement',
            component: () => import('@/views/bi/procurement'),
            name: '/bi/procurement',
            meta: {
              title: '采购'
            }
          },
          {
            path: '/bi/project',
            component: () => import('@/views/bi/project'),
            name: '/bi/project',
            meta: {
              title: '工程'
            }
          },
          {
            path: '/bi/quality',
            component: () => import('@/views/bi/quality'),
            name: '/bi/quality',
            meta: {
              title: '质量'
            }
          },
          {
            path: '/bi/safety',
            component: () => import('@/views/bi/safety'),
            name: '/bi/safety',
            meta: {
              title: '安监'
            }
          },
          {
            path: '/bi/science',
            component: () => import('@/views/bi/science'),
            name: '/bi/science',
            meta: {
              title: '科技'
            }
          },
          {
            path: '/bi/technology',
            component: () => import('@/views/bi/technology'),
            name: '/bi/technology',
            meta: {
              title: '技术'
            }
          },
          {
            path: '/bi/overview',
            component: () => import('@/views/bi/overview'),
            name: '/bi/overview',
            meta: {
              title: '总览'
            }
          },
          {
            path: '/bi/businessBranch',
            component: () => import('@/views/bi/businessBranch'),
            name: '/bi/businessBranch',
            meta: {
              title: '商务分公司'
            }
          },
          {
            path: '/bi/designBranch',
            component: () => import('@/views/bi/designBranch'),
            name: '/bi/designBranch',
            meta: {
              title: '设计分公司'
            }
          },
          {
            path: '/bi/informationCenterBranch',
            component: () => import('@/views/bi/informationCenterBranch'),
            name: '/bi/informationCenterBranch',
            meta: {
              title: '信息技术中心分公司'
            }
          },
          {
            path: '/bi/legalBranch',
            component: () => import('@/views/bi/legalBranch'),
            name: '/bi/legal',
            meta: {
              title: '法务分公司'
            }
          },
          {
            path: '/bi/materialsBranch',
            component: () => import('@/views/bi/materialsBranch'),
            name: '/bi/materialsBranch',
            meta: {
              title: '物资分公司'
            }
          },
          {
            path: '/bi/procurementBranch',
            component: () => import('@/views/bi/procurementBranch'),
            name: '/bi/procurementBranch',
            meta: {
              title: '采购分公司'
            }
          },
          {
            path: '/bi/projectBranch',
            component: () => import('@/views/bi/projectBranch'),
            name: '/bi/projectBranch',
            meta: {
              title: '工程分公司'
            }
          },
          {
            path: '/bi/qualityBranch',
            component: () => import('@/views/bi/qualityBranch'),
            name: '/bi/qualityBranch',
            meta: {
              title: '质量分公司'
            }
          },
          {
            path: '/bi/safetyBranch',
            component: () => import('@/views/bi/safetyBranch'),
            name: '/bi/safetyBranch',
            meta: {
              title: '安监分公司'
            }
          },
          {
            path: '/bi/scienceBranch',
            component: () => import('@/views/bi/scienceBranch'),
            name: '/bi/scienceBranch',
            meta: {
              title: '科技分公司'
            }
          },
          {
            path: '/bi/technologyBranch',
            component: () => import('@/views/bi/technologyBranch'),
            name: '/bi/technologyBranch',
            meta: {
              title: '技术分公司'
            }
          },
          {
            path: '/bi/board',
            component: () => import('@/views/bi/other'),
            name: '/bi/board',
            meta: {
              title: '公司看板',
              param: '3f64b129-f074-c0a6-88c2-7bcbd76830c0'
            }
          },
          {
            path: '/bi/board2',
            component: () => import('@/views/bi/other'),
            name: '/bi/board2',
            meta: {
              title: '分公司看板',
              param: '93691f7a-359f-4a2d-bcce-91e873a2e310'
            }
          },
          {
            path: '/bi/board3',
            component: () => import('@/views/bi/other'),
            name: '/bi/board3',
            meta: {
              title: '数据看板',
              param: 'f14bedb2-f5e0-4d54-8405-fb50e109863b'
            }
          }
        ]
      }
    ]
  },
  // 第三方视频对接
  {
    path: '/videoDocking',
    component: RouteView,
    redirect: '/videoDocking/controPanel',
    name: 'videoDocking',
    meta: {
      title: '视频',
      icon: 'user',
      hideHeader: true,
      permission: ['user']
    },
    children: [
      {
        path: 'controPanel',
        component: RouteView,
        redirect: '/videoDocking/controPanel',
        name: 'controPanel',
        meta: {
          title: '视频配置'
        },
        children: [
          {
            path: '/videoDocking/controPanel',
            component: () => import('@/views/videoDocking/controPanel'),
            name: '/videoDocking/controPanel',
            meta: {
              title: '视频监控'
            }
          },
          {
            path: '/videoDocking/AIData',
            component: () => import('@/views/videoDocking/AIData'),
            name: '/videoDocking/AIData',
            meta: {
              title: 'ai数据汇总'
            }
          },
          {
            path: '/videoDocking/addProject',
            component: () => import('@/views/videoDocking/addProject'),
            name: '/videoDocking/addProject',
            meta: {
              title: '手动添加元项目'
            }
          },
          {
            path: '/videoDocking/connectionConfiguration',
            component: () => import('@/views/videoDocking/connectionConfiguration'),
            name: '/videoDocking/connectionConfiguration',
            meta: {
              title: '视频连线配置'
            }
          },
          {
            path: '/videoDocking/dataDockingKey',
            component: () => import('@/views/videoDocking/dataDockingKey'),
            name: '/videoDocking/dataDockingKey',
            meta: {
              title: '数据对接密钥'
            }
          },
          {
            path: '/videoDocking/projectConfiguration',
            component: () => import('@/views/videoDocking/projectConfiguration'),
            name: '/videoDocking/projectConfiguration',
            meta: {
              title: '项目配置'
            }
          },
          {
            path: '/videoDocking/keyConfiguration',
            component: () => import('@/views/videoDocking/keyConfiguration'),
            name: '/videoDocking/keyConfiguration',
            meta: {
              title: '设备密钥配置'
            }
          },
          {
            path: '/videoDocking/deviceConfiguration',
            component: () => import('@/views/videoDocking/deviceConfiguration'),
            name: '/videoDocking/deviceConfiguration',
            meta: {
              title: '设备配置'
            }
          }
        ]
      }
    ]
  },
  // APP管理
  {
    path: '/appManage',
    redirect: '/appManage/pageManage',
    component: RouteView,
    name: 'appManage',
    meta: {
      title: 'APP',
      icon: 'user'
    },
    children: [
      {
        path: '/appManage/pageManage',
        component: RouteView,
        name: 'pageManage',
        meta: {
          title: 'APP界面管理',
          icon: 'user'
        },
        children: [
          {
            path: '/appManage/pageManage/banner',
            name: 'bannerManage',
            meta: {
              title: '项目轮播图管理'
            },
            component: () => import('@/views/systemManage/appManage/pageManage/bannerManage')
          }
        ]
      }
    ]
  },
  // 人资
  {
    path: '/humanResources',
    component: RouteView,
    name: 'humanResources',
    meta: {
      title: '人资'
    },
    children: [
      {
        path: '/humanResources/manage',
        name: '/humanResources/manage',
        meta: {
          title: '人力资源'
        },
        redirect: '/humanResources/home',
        component: RouteView,
        children: [
          {
            path: '/humanResources/home',
            name: '/humanResources/home',
            meta: {
              title: '人力资源首页'
            },
            component: () => import('@/views/humanResources/home')
          }
        ]
      }
    ]
  },
  // 绩效
  {
    path: '/jixiao',
    component: RouteView,
    name: 'jixiao',
    redirect: '/appManage/pageManage',
    meta: {
      title: '绩效'
    },
    children: [
      {
        path: '/assessConfig',
        name: '/assessConfig',
        meta: {
          title: '基础配置管理'
        },
        redirect: '/assessConfig/assessType',
        component: RouteView,
        children: [
          {
            path: '/assessConfig/rankRate',
            name: 'RankRate',
            meta: {
              title: '排名等级比例配置',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/assessConfig/assessAging',
            name: 'AssessAging',
            meta: {
              title: '考核时效设置',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/assessConfig/busniessType',
            name: 'BusniessType',
            meta: {
              title: '业务类型配置',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/assessConfig/projectAssess',
            name: 'ProjectAssess',
            meta: {
              title: '项目不考核配置',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/assessConfig/peopleNoAssess',
            name: 'PeopleNoAssess',
            meta: {
              title: '人员不考核配置',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/assessConfig/postShare',
            name: 'PostShare',
            meta: {
              title: '主兼岗分摊配置',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/assessConfig/assessType',
            name: 'AssessType',
            meta: {
              title: '考核类型管理',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/assessConfig/assessClass',
            name: 'AssessClass',
            meta: {
              title: '考核分类管理',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/assessConfig/dictionary',
            name: 'Dictionary',
            meta: {
              title: '字典类信息管理',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/assessConfig/departAssociation',
            name: 'DepartAssociation',
            meta: {
              title: '部门关联配置',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/calculationManage/index',
            name: 'CalculationManage',
            meta: {
              title: '计算因子配置',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          }
        ]
      },
      {
        path: '/checkSchemeManage',
        name: '/checkSchemeManage',
        meta: {
          title: '考核方案管理'
        },
        redirect: '/checkSchemeManage/checkScorETemplateManage',
        component: RouteView,
        children: [
          {
            path: '/checkSchemeManage/checkScorETemplateManage',
            name: 'CheckScorETemplateManage',
            meta: {
              title: '考核评分模板管理',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/checkSchemeManage/checkScoreTemplateHistory',
            name: 'CheckScoreTemplateHistory',
            meta: {
              title: '考核评分模板历史查询',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/checkSchemeManage/checkFlowManage',
            name: 'CheckFlowManage',
            meta: {
              title: '考核流程管理',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          }
        ]
      },
      {
        path: '/indicatorStoreroomManage',
        name: '/indicatorStoreroomManage',
        meta: {
          title: '指标库管理'
        },
        redirect: '/indicatorStoreroomManage/indicatorStoreroomMaintain',
        component: RouteView,
        children: [
          {
            path: '/indicatorStoreroomManage/indicatorStoreroomMaintain',
            name: 'IndicatorStoreroomMaintain',
            meta: {
              title: '指标库管理',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          }
        ]
      },
      {
        path: '/checkCarryOutManage',
        name: '/checkCarryOutManage',
        meta: {
          title: '考核实施管理'
        },
        redirect: '/checkCarryOutManage/checkScoreListManage',
        component: RouteView,
        children: [
          {
            path: '/checkCarryOutManage/checkScore',
            name: 'CheckScore',
            meta: {
              title: '	考核评分',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/checkCarryOutManage/checkRateOfProgress',
            name: 'CheckRateOfProgress',
            meta: {
              title: '进度监控_分公司',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/checkCarryOutManage/checkresultHQ',
            name: 'CheckresultHQ',
            meta: {
              title: '进度监控_公司',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/checkCarryOutManage/checkClass',
            name: 'checkClass',
            meta: {
              title: '明细查看',
              webType: 'JX'
            },
            // iframeComponent: () => import('@/views/webView'),
            component: () => import('@/views/webView')
          },
          {
            path: '/checkCarryOutManage/appealAudit',
            name: 'AppealAudit',
            meta: {
              title: '申述处理审核',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/checkCarryOutManage/checkresultHR',
            name: 'CheckresultHR',
            meta: {
              title: '考核结果推送HR',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/checkCarryOutManage/performanceRankCheck',
            name: 'PerformanceRankCheck',
            meta: {
              title: '绩效排名查看',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/checkCarryOutManage/checkRankingAdjust',
            name: 'CheckRankingAdjust',
            meta: {
              title: '绩效排名',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/checkCarryOutManage/checkScoreAudit',
            name: 'CheckScoreAudit',
            meta: {
              title: '考核评分审核',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/checkCarryOutManage/appeal',
            name: 'CheckCarryOutManageAppeal',
            meta: {
              title: '申述处理',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/checkCarryOutManage/checkSynthesisRanking',
            name: 'CheckSynthesisRanking',
            meta: {
              title: '综合排名',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/checkCarryOutManage/checkScoreListManage',
            name: 'CheckScoreListManage',
            meta: {
              title: '考核评分表管理',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          }
        ]
      },
      {
        path: '/satisfactionManagement',
        name: '/satisfactionManagement',
        meta: {
          title: '考核结果查询'
        },
        redirect: '/satisfactionManagement/personCheckResult',
        component: RouteView,
        children: [
          {
            path: '/satisfactionManagement/personCheckResult',
            name: 'PersonCheckResult',
            meta: {
              title: '个人结果查询',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/satisfactionManagement/checkResult',
            name: 'SatisfactionManagementCheckResult',
            meta: {
              title: '考核结果查询',
              webType: 'JX'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          }
        ]
      }
    ]
  },
  // 企划
  {
    path: '/enterprisePlanning',
    component: RouteView,
    name: 'enterprisePlanning',
    redirect: '/plan/yearList',
    meta: {
      title: '企划'
    },
    children: [
      {
        path: '/plan',
        name: 'plan',
        meta: {
          title: '计划管理'
        },
        redirect: '/plan/yearList',
        component: RouteView,
        children: [
          {
            path: '/plan/yearList',
            name: 'yearList',
            meta: {
              title: '年度计划',
              webType: 'ENTERPRISEPLANNING'
            },
            iframeComponent: () => import('@/views/webView')
            // component: () => import('@/views/webView')
          },
          {
            path: '/plan/yearEdit',
            name: 'yearEdit',
            meta: {
              title: '年度计划',
              webType: 'ENTERPRISEPLANNING'
            },
            iframeComponent: () => import('@/views/webView')
          },
          {
            path: '/plan/yearView',
            name: 'yearView',
            meta: {
              title: '年度计划',
              webType: 'ENTERPRISEPLANNING'
            },
            iframeComponent: () => import('@/views/webView')
          },
          {
            path: '/plan/monthList',
            name: 'monthList',
            meta: {
              title: '月度计划',
              webType: 'ENTERPRISEPLANNING'
            },
            iframeComponent: () => import('@/views/webView')
          },
          {
            path: '/plan/monthEdit',
            name: 'monthEdit',
            meta: {
              title: '月度计划',
              webType: 'ENTERPRISEPLANNING'
            },
            iframeComponent: () => import('@/views/webView')
          },
          {
            path: '/plan/monthView',
            name: 'monthView',
            meta: {
              title: '月度计划',
              webType: 'ENTERPRISEPLANNING'
            },
            iframeComponent: () => import('@/views/webView')
          },
          {
            path: '/plan/progressList',
            name: 'progressList',
            meta: {
              title: '计划进度维护',
              webType: 'ENTERPRISEPLANNING'
            },
            iframeComponent: () => import('@/views/webView')
          },
          {
            path: '/plan/progressEdit',
            name: 'progressEdit',
            meta: {
              title: '计划进度维护',
              webType: 'ENTERPRISEPLANNING'
            },
            iframeComponent: () => import('@/views/webView')
          },
          {
            path: '/plan/progressView',
            name: 'progressView',
            meta: {
              title: '计划进度维护',
              webType: 'ENTERPRISEPLANNING'
            },
            iframeComponent: () => import('@/views/webView')
          }
        ]
      },
      {
        path: '/query',
        name: 'query',
        meta: {
          title: '查询管理'
        },
        redirect: '/query/yearList',
        component: RouteView,
        children: [
          {
            path: '/query/yearList',
            name: 'yearList',
            meta: {
              title: '年度计划查询',
              webType: 'ENTERPRISEPLANNING'
            },
            iframeComponent: () => import('@/views/webView')
          },
          {
            path: '/query/monthList',
            name: 'monthList',
            meta: {
              title: '月度计划查询',
              webType: 'ENTERPRISEPLANNING'
            },
            iframeComponent: () => import('@/views/webView')
          },
          {
            path: '/query/progressList',
            name: 'progressList',
            meta: {
              title: '计划进度查询',
              webType: 'ENTERPRISEPLANNING'
            },
            iframeComponent: () => import('@/views/webView')
          }
        ]
      },
      {
        path: '/supervision',
        name: 'supervision',
        meta: {
          title: '督查督办管理'
        },
        redirect: '/supervision/superviseList',
        component: RouteView,
        children: [
          {
            path: '/supervision/superviseList',
            name: 'superviseList',
            meta: {
              title: '督查督办',
              webType: 'ENTERPRISEPLANNING'
            },
            iframeComponent: () => import('@/views/webView')
          },
          {
            path: '/supervision/editSupervise',
            name: 'editSupervise',
            meta: {
              title: '督查督办',
              webType: 'ENTERPRISEPLANNING'
            },
            iframeComponent: () => import('@/views/webView')
          },
          {
            path: '/supervision/dataBoard',
            name: 'dataBoard',
            meta: {
              title: '数据看板',
              webType: 'ENTERPRISEPLANNING'
            },
            iframeComponent: () => import('@/views/webView')
          },
          {
            path: '/supervision/overdueList',
            name: 'overdueList',
            meta: {
              title: '数据看板',
              webType: 'ENTERPRISEPLANNING'
            },
            iframeComponent: () => import('@/views/webView')
          },
          {
            path: '/supervision/departmentInfo',
            name: 'departmentInfo',
            meta: {
              title: '数据看板',
              webType: 'ENTERPRISEPLANNING'
            },
            iframeComponent: () => import('@/views/webView')
          }
        ]
      }
    ]
  }
]
